import request from '@/utils/request'

// 查询压装数据列表
export function listPressdata(query) {
  return request({
    url: '/data_manage/pressdata/list',
    method: 'get',
    params: query
  })
}

// 查询压装数据详细
export function getPressdata(id) {
  return request({
    url: `/data_manage/pressdata/${id}`,
    method: 'get'
  })
}

// 新增压装数据
export function addPressdata(data) {
  return request({
    url: '/data_manage/pressdata',
    method: 'post',
    data: data
  })
}

// 修改压装数据
export function updatePressdata(data) {
  return request({
    url: '/data_manage/pressdata',
    method: 'put',
    data: data
  })
}

// 删除压装数据
export function delPressdata(id) {
  return request({
    url: `/data_manage/pressdata/${id}`,
    method: 'delete'
  })
}
